#ifndef SYSGNFINDPATHMODEL_H
#define SYSGNFINDPATHMODEL_H

#include <QObject>
#include "cnsComponent.h"
#include "httpdata.h"
#include "gnfindpaththread.h"
#include "gnfindpathdbthread.h"
#include "serverclientsocketproc.h"

class SysGnFindPathModel : public QObject
{
    Q_OBJECT
public:
    Q_INVOKABLE SysGnFindPathModel();
    Q_INVOKABLE void f_pushPaths(CnsComponentPtr com, qttp::HttpData& httpData);
    GnFindPathDBThread* newQueryThread(CnsComponentPtr com, QVariantHash& sv);
    Q_INVOKABLE void f_pushFilePaths(CnsComponentPtr com, GnFindPathThreadPtr thread);
    Q_INVOKABLE void f_loginSuccess(CnsComponentPtr com, ServerClientSocketProcPtr serverClientSocketProcPtr);
    Q_INVOKABLE void f_emitPushFilePaths(CnsComponentPtr com, const QVariantHash& props);
    Q_INVOKABLE void emitPushFilePaths(CnsComponentPtr com, CnsComponentPtr thread_com);
    void delThread(CnsComponentPtr com, DbQueryBaseThread* thread);
};

Q_DECLARE_METATYPE(SysGnFindPathModel*)

#endif // SYSGNFINDPATHMODEL_H
